package ssoUserLoginHandler

import (
	exampleDtoApiPbSsoUserLogin "gitee.com/krio/ginc/example/dto/api/pb/sso/user_login"
	ssoUserLoginService "gitee.com/krio/ginc/example/internal/sso/user_login/service"
	"github.com/gin-gonic/gin"
)

// UserLogin 新增
func UserLogin(ctx *gin.Context, req *exampleDtoApiPbSsoUserLogin.UserLoginReq) (*exampleDtoApiPbSsoUserLogin.UserLoginResp, error) {
	data, err := ssoUserLoginService.UserLogin(ctx, req)
	if err != nil {
		return nil, err
	}
	return data, nil
}
